package prod_cons;

import java.util.concurrent.LinkedBlockingQueue;

public class LinkedListContainer implements TaskContainer {
	LinkedBlockingQueue<Runnable> blockingQueue = new LinkedBlockingQueue<Runnable>();
	
	@Override
	public void put(Runnable task) {
		blockingQueue.offer(task);
	}

	@Override
	public Runnable get() {
		return blockingQueue.poll();
	}

	@Override
	public void setConsumersNum(int consumersNum) {
	}

	@Override
	public void registerConsumer() {
	}
}
